package com.mrjy.common.util;

public enum ResponseCode {
	SUCCESS						("100", "成功"),
	UPDATE						("101", "请更新接口"),
	ENTITY_NOTFOUND				("102", "没有找到指定对象"), 
	INTERFACE_DISABLE			("103", "停用的接口"),
	CEM_ERROR					("104", "连接CEM中心失败"),
	UNDONE						("105", "没有完成"),
	USER_ERROR					("106", "用户不存在"),
	
	SERVER_ERROR				("201", "服务器出错"), 
	INVALID_DATE				("202", "无效的日期"), 
	INVALID_REQUEST				("203", "无效的请求"),
	INVALID_PAGE				("204", "无效的分页数"),
	INVALID_PAGESIZE			("205", "无效的分页行值"),
	INVALID_BEGINTIME			("206", "无效的开始时间"),
	INVALID_ENDTIME				("207", "无效的结束时间"),
	LACK_UPDATED_BY             ("208", "缺少更新的用户"),
	LACK_CREATED_BY             ("209", "缺少创建的用户"),
	ILLEGAL_REQUEST             ("210", "非法请求"),	
	
	ERROR_ARGS 					("300","参数错误"),
	UPDATE_FAIL                 ("301","更新失败"),
	ADD_FAIL 					("302","添加失败"),
	QUERY_FAIL                  ("303","查询失败"),
	VERIFICATION_FAIL           ("304","参数校验失败"),
	
	PRIMARY_KEY_FOUND			("400", "主键冲突"),
	BEYOUD_COLUMN_MAX_LENGTH	("401", "超过列的最大长度"),
	COLUMN_TYPE_ERROR			("402", "列类型错误"),
	COLUMN_NOT_NULL				("403", "列值不能为空"),
	
	OUT_PARAME_RANGE			("600","参数超出范围"),
	ACOUNT_OR_PASS_ERR			("601","账号或密码不正确"),
	VISITOR_STATUS				("602","游客状态"),
	PHONE_AND_VALCODE_NO_MATCH  ("603","手机号与验证码不匹配"),
	VALCODE_OUT_TIME			("604","验证码超时");
	
	private String respCode = ""; 
	private String respDesc = "";

	ResponseCode(String code, String desc) {
		this.respCode = code;
		this.respDesc = desc;
	}
	
	public String getCode() {
		return this.respCode;
	}
	public String getDesc() {
		return this.respDesc;
	}
}
